//滑动效应控制

head.js(rootPath+"/static/admin/assets/js/skin-select/jquery.cookie.js");
head.js(rootPath+"/static/admin/assets/js/skin-select/skin-select.js");

//Showing Date
head.js(rootPath+"/static/admin/assets/js/clock/date.js");



////滑动菜单

head.js(rootPath+"/static/admin/assets/js/custom/scriptbreaker-multiple-accordion-1.js", function() {
    $(".topnav").accordionze({
        accordionze: true,
        speed: 500,
        closedSign: '<img src="'+rootPath+'/static/admin/assets/img/plus.png">',
        openedSign: '<img src="'+rootPath+'/static/admin/assets/img/minus.png">'
    });

});



//搜索菜单
head.js(rootPath+"/static/admin/assets/js/search/jquery.quicksearch.js", function() {

    $('input.id_search').quicksearch('#menu-showhide li, .menu-left-nest li');

});

//------------------------------------------------------------- 
//页面加载程序
head.js(rootPath+"/static/admin/assets/js/pace/pace.js", function() {

  paceOptions = {
      ajax: false, // disabled
      document: false, // disabled
      eventLag: false, // disabled
      elements: {
          selectors: ['.my-page']
      }
  };

});


//数字时钟
head.js(rootPath+"/static/admin/assets/js/clock/jquery.clock.js", function() {
    //clock
    $('#digital-clock').clock({
        offset: '+8',
        type: 'digital'
    });
});


function updatePwd(){
	var userid = $('#user_id').val();
	var editPwdUrl=window.rootPath+"/UserController/editPwd/"+userid;
	layer.open({
	  type: 2,
	  title: '修改密码',
	  area: ['780px', '350px'],
	  shade: 0.8,
	  content: editPwdUrl
	});
}






